// 自动生成模板Activate
package pkg_member

import (
	"github.com/flipped-aurora/gin-vue-admin/server/global"
	"time"
	
)

// 活动管理/发布 结构体  Activate
type Activate struct {
 global.GVA_MODEL 
      Title  string `json:"title" form:"title" gorm:"column:title;comment:活动标题;" binding:"required"`  //活动标题 
      Url  string `json:"url" form:"url" gorm:"column:url;comment:活动图片链接地址;" binding:"required"`  //活动图片链接地址 
      Starttime  *time.Time `json:"starttime" form:"starttime" gorm:"column:starttime;comment:活动开始时间;" binding:"required"`  //活动开始时间 
      Endtime  *time.Time `json:"endtime" form:"endtime" gorm:"column:endtime;comment:活动结束时间;" binding:"required"`  //活动结束时间 
      Location  string `json:"location" form:"location" gorm:"column:location;comment:活动详细地点;" binding:"required"`  //活动详细地点 
      Person  *int `json:"person" form:"person" gorm:"column:person;comment:活动参与人数上限(0为无上限);"`  //活动参与人数上限(0为无上限) 
      Details  string `json:"details" form:"details" gorm:"column:details;comment:活动详情;type:text;"`  //活动详情 
      State  *bool `json:"state" form:"state" gorm:"column:state;comment:活动状态(结束/开启);" binding:"required"`  //活动状态 
      CreatedBy  uint   `gorm:"column:created_by;comment:创建者"`
      UpdatedBy  uint   `gorm:"column:updated_by;comment:更新者"`
      DeletedBy  uint   `gorm:"column:deleted_by;comment:删除者"`
}


// TableName 活动管理/发布 Activate自定义表名 activate
func (Activate) TableName() string {
  return "activate"
}

